package com.lin.cloud.disk.entity.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * 注册请求实体类
 * @author ljc
 * @date 2020/12/11 20:40
 */
@Data
public class RegisterRequest {

    @ApiModelProperty(value = "用户名", name = "userName")
    @Pattern(regexp = "^[a-z0-9]+$",message = "用户名格式错误,只允许输入数字+字母")
    private String userName;

    @ApiModelProperty(value = "密码", name = "password")
    @NotBlank(message = "密码不能为空")
    private String password;

    @ApiModelProperty(value = "用户昵称", name = "nickname")
    @NotBlank(message = "昵称不能为空")
    private String nickname;

    @ApiModelProperty(value = "用户头像", name = "avatarUrl")
    @NotBlank(message = "头像不能为空")
    private String avatarUrl;

    @ApiModelProperty(value = "手机号", name = "phone")
    private Long phone;

    @ApiModelProperty(value = "性别 0 - 男 1 女", name = "sex")
    private Integer sex;

    @ApiModelProperty(value = "真实姓名", name = "realName")
    private String realName;

    @ApiModelProperty(value = "qq", name = "qq")
    private Long qq;

    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    @ApiModelProperty(value = "公司ID", name = "companyId")
    private Long companyId;


}
